class PetDog{
    //成员变量
    public String name;
    public String color;
    //成员属性
    public void bark(){
        System.out.println(name+"汪汪汪~~~");
    }
    public void wag(){
        System.out.println(name+"摇尾巴~~~");
    }

}
class Date{
    public int year;
    public int month;
    public int day;
    public Date(){
        System.out.println("调用不带参数的构造方法！！！");
    }
    public Date(int year,int month,int day){
        System.out.println("调用带两个参数的构造方法！！！");
        this.year = year;
        this.month = month;
        this.day = day;
        this.printDay();
    }
    public void printDay(){
        System.out.println("年："+year+"月："+month+"日："+day);
    }

}
class Student{
    public String namme;
    public String gender;
    public int age;
    private static String classroom ;
    static{
        System.out.println("gukgbgb");
        String classroom = "301";
        System.out.println(classroom);
    }

    public static String getClassRoom(){
        return classroom;
    }
}

public class Test {
    public static void main(String[] args) {
        Student s1 = new Student();
        System.out.println(Student.getClassRoom());
    }
    public static void main2(String[] args) {
        Date d1 = new Date(2021,10,11);
        Date d2 = new Date(2022,11,11);
        Date d3 = new Date();
        d1.printDay();
        d2.printDay();
        d3.printDay();
    }
    public static void main1(String[] args) {
        PetDog p1 = new PetDog();
        p1.bark();
        p1.wag();
    }
}
